SwappableImage.setPixelAtOffset

Set a pixel given the position.

struct SwappableImage(Color)
@nogc @safe
void
setPixelAtOffset
(
size_t offset
,
Color value
)
if (
isColor!Color
)

Parameters

offset size_t

The offset of the pixel

value Color

The color to assign to the pixel

Throws

If offset coordinate is outside of the image boundary.

Meta